import cookie from 'cookie_js'

const adminToKen = 'admin_toKen'
const usernameKey = 'username'

export function getToKen(){
  return cookie.get(adminToKen)
}

export function setToKen(token) {
  cookie.set(adminToKen, token)
}

export function removeToKen() {
  return cookie.remove(adminToKen)
}

export function setUserName(username){
  return cookie.set(usernameKey, username)
}

export function getUserName(){
  return cookie.get(usernameKey)
}

export function removeUserName() {
  return cookie.remove(usernameKey)
}
